<?php
namespace Admin\Model;
use Think\Model;
class StaffModel extends Model {
  protected $_validate = array(
    //系别添加修改的正则表达式 
    array('name','require','员工名称不能为空',0,'regex',3),    
    array('age','require','年龄不能为空',0,'regex',3),    
    array('education','','必须选择一个学历分类',0,'notequal',3),
    array('school','require','毕业学校不能为空',0,'regex',3),
    array('cat_id','','必须选择一个系别分类',0,'notequal',3),
    array('de_id','','必须选择一个部门',0,'notequal',3),
    array('place','require','籍贯不能为空',0,'regex',3),
    array('job','require','岗位不能为空',0,'regex',3),

  );
  
}